﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MobileAPI.DAL;
using MobileAPI.Entity.Model;

namespace MobileAPI.BLL
{
    public class BLLCustomerInfo:BaseBLL
    {

        private DALCustomerInfo dal;
        public DALCustomerInfo Dal
        {
            get
            {
                if (dal == null)
                    dal = DALFactory.getInstance().CreateCustomerInfoDAL();
                return dal;
            }
        }

        public IList<ECustomerInfo> SearchCustomers(string CustomerName, string Instrument)
        {
            try
            {
                return Dal.SearchCustomers(CustomerName,Instrument);
            }
            catch (Exception e)
            {
                
                base.WriteLog(e.Message);
                throw e;
            }
        }
    }
}
